CustomerAuditGridCtl = Ext.extend(CustomerGridCtl, {

			getCommonConfig : function() {

				var config = {
					height : 300,
					frame : true,
					region : 'south'
				};

				return config;

			},
			configButtons : function(config) {
				
//				customeraudit_audit

				var buttons = [{
							text : '审核通过',
							handler : this.pass,
							scope : this
						}, {
							text : '审核不通过',
							handler : this.unpass,
							scope : this
						}];

				config.buttonAlign = 'left';
				config.buttons = buttons;

				return config;

			},
			configSm : function(config) {

				var xg = Ext.grid;

				var sm = new xg.CheckboxSelectionModel();

				config.sm = sm;

				this.sm = sm;

				return config;
			},
			configCmsSm : function(opt) {
				opt.push(this.sm);
			},
			pass : function() {

				var records = this.getSelectList();
				var idList = [];
				for (var i = 0; i < records.length; i++) {
					idList.push({
								id : records[i].get('id'),
								status : 2
							});
				}

				this.updateStatus(idList);

			},
			unpass : function() {

				var records = this.getSelectList();

				var idList = [];
				for (var i = 0; i < records.length; i++) {
					idList.push({
								id : records[i].get('id'),
								status : 4
							});
				}

				this.updateStatus(idList);

			},
			updateStatus : function(recordList) {

				var s = cf.getC('s');

				s.request({
							resource : 'customer.do',
							act : 'updateCusStatus',
							params : {
								itemlist : Ext.encode(recordList)
							},
							scope : this,
							cbf : this.updateCbf
						});

			},
			updateCbf : function() {
				this.reload();
			},
			load : function() {

				var store = this.store;
				store.baseParams = {
					readtype : 'audit'
				};
				store.load({
							params : {
								start : 0,
								limit : 29
							}
						});
			}

		});
